<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<table id="orderExamData"></table> 
<script type="text/javascript">
		/* 读取用户信息并设置到表格 */
		 var adminData=$('#orderExamData').datagrid({
			singleSelect:true,
			url:'order/getOrderList',
			striped:true,
			loadMsg:"正在加载中...",
			queryParams:{status:2},
			pagination:true,
			pageNumber:1,
			pageSize:10,
			pageList:[10,20,30,40,50],
			remoteSort:false,
			fit:true,
		//	toolbar:"#adminGrid_bar",
			columns:[[
			  		{field:'oId',title:'订单号',width:150,align:'center'},
			  		{field:'riInfo',title:'收货人信息',width:150,align:'center'},
			  		{field:'oTotalMonmy',title:'应付金额',width:150,align:'center'},
			  		{field:'oPayment',title:'已付金额',width:150,align:'center',
			  			formatter: function(value,row,index){
			  				if(row.oPayment==undefined){
			  					return "未付款";
			  				}
			  				return "已付款"+row.oPayment;
			  			}},
			  		{field:'oBuyerMessage',title:'买家留言',width:180,align:'center'},
			  		{field:'oCreateTime',title:'创建时间',width:180,align:'center',
			  			formatter: function(value,row,index){
							return getDate(row.oCreateTime.toString());
			  			}
			  		}
			  		]]
			
		}); 
		</script>